
use std::net::{UdpSocket};



fn main() -> std::io::Result<()> {
    {
       let socket = UdpSocket::bind("0.0.0.0:0")?;


       loop {
            let s = "hello";
            let amt = socket.send_to(s.as_bytes(), "224.0.0.88:8881")?;
            println!("send bytes:{}", amt);

            std::thread::sleep(std::time::Duration::from_secs(2));
       }
    }
}

